package cn.ssm.pojo;

import java.util.Date;
import java.util.List;

/**
 * 订单详情表
 * 
 * @author 黄少涛
 * 
 */
public class OrderDetail {
	private int id;// 订单编号
	private int scheduleId;// 排片编号
	private int userId;// 用户编号
	private int count;// 购买数量
	private Date buyDate;// 购买时间
	private Double adjustedPrice;// 调整的总价
	private int orderIsActiveId; // 订单状态表编号

	// 新增属性  黄少涛
	private Schedule schedule; // 新增排片类 需要得到电影类中的电影名、电影时长，影厅类的影厅名、电影结束时间
	private List<Seat> seatList; // 新增座位集合
	private String userName; // 购票用户 手机号码
	private User user;  //新增用户类 
	private OrderIsActive orderIsActive; //新增座位状态类
	
	private String movieName;//电影名   朱海松
	
	public OrderDetail() {

	}

	public OrderDetail(int id, int scheduleId, int userId, int count, Date buyDate, Double adjustedPrice) {
		super();
		this.id = id;
		this.scheduleId = scheduleId;
		this.userId = userId;
		this.count = count;
		this.buyDate = buyDate;
		this.adjustedPrice = adjustedPrice;
	}
	
	

	public OrderIsActive getOrderIsActive() {
		return orderIsActive;
	}

	public void setOrderIsActive(OrderIsActive orderIsActive) {
		this.orderIsActive = orderIsActive;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getOrderIsActiveId() {
		return orderIsActiveId;
	}

	public void setOrderIsActiveId(int orderIsActiveId) {
		this.orderIsActiveId = orderIsActiveId;
	}

	public String getMovieName() {
		return movieName;
	}

	public void setMovieName(String movieName) {
		this.movieName = movieName;
	}

	public Schedule getSchedule() {
		return schedule;
	}

	public void setSchedule(Schedule schedule) {
		this.schedule = schedule;
	}

	public List<Seat> getSeatList() {
		return seatList;
	}

	public void setSeatList(List<Seat> seatList) {
		this.seatList = seatList;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getScheduleId() {
		return scheduleId;
	}

	public void setScheduleId(int scheduleId) {
		this.scheduleId = scheduleId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Date getBuyDate() {
		return buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

	public Double getAdjustedPrice() {
		return adjustedPrice;
	}

	public void setAdjustedPrice(Double adjustedPrice) {
		this.adjustedPrice = adjustedPrice;
	}

	@Override
	public String toString() {
		return "OrderDetail [id=" + id + ", scheduleId=" + scheduleId + ", userId=" + userId + ", count=" + count
				+ ", buyDate=" + buyDate + ", adjustedPrice=" + adjustedPrice + "]";
	}

}
